﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>textarea自适应文字行数</title>
    <script type="text/javascript" language="JavaScript">
        
        
    </script>
</head>
<body>
<textarea rows=1 name=txt1 cols=27 onpropertychange="this.style.posHeight=this.scrollHeight">
</textarea>
</body>
</html>